package com.account.book.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

@Data
@ApiModel(value = "查询金额响应详情参数", description = "查询金额响应详情参数")
public class BookMoneyResSubVo {
    @ApiModelProperty("账单id")
    private String id;

    @ApiModelProperty("账本id")
    private String bookId;

    @ApiModelProperty("分类外键id")
    private String categoryId;

    @ApiModelProperty("分类名")
    private String categoryName;

    @ApiModelProperty("分类图标url")
    private String avatarUrl;

    @ApiModelProperty("名称，优先取book_money的userName，那边的userName可能会更改，更改后取那边的可以在首页展示")
    private String userName;

    @ApiModelProperty("账本用户表tb_book_user表id")
    private String userId;

    @ApiModelProperty("状态0-删除，1-正常")
    private Integer status;

    @ApiModelProperty("金额")
    @NotNull(message = "金额不能为空")
    private BigDecimal money;

    @ApiModelProperty("记账时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date bookTime;

    @ApiModelProperty("收入类型 -1 全部  0 支出 1 收入")
    private Integer type;

    @ApiModelProperty("创建人")
    private String createBy;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty("更新人")
    private String updateBy;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    @ApiModelProperty("富文本详情")
    private String detailDesc;

    @ApiModelProperty("是否显示详情 0-否 1-是")
    private String detailDescFlag;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("排序")
    private String bookTimeDesc;

    @ApiModelProperty("展示滑动菜单")
    private Boolean show = false;
}
